package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(30)"`
	Password string `gorm:"type:varchar(32)"`
}
type News struct {
	gorm.Model
	Title   string `gorm:"type:varchar(30)"`
	Content string `gorm:"type:varchar(30)"`
}
type Collect struct {
	gorm.Model
	Uid int `gorm:"type:int"`
	Nid int `gorm:"type:int"`
}
/////////////
type Good struct {
	gorm.Model
	GoodCode string `gorm:"type:varchar(30)"`
	GoodName string `gorm:"type:varchar(30)"`
	GoodPrice int `gorm:"type:int"`
}
type GoodOrder struct {
	gorm.Model
	Gid int `gorm:"type:int"`
	GoodFrom string `gorm:"type:varchar(30)"`
	GoodTo string `gorm:"type:varchar(30)"`
}
type GoodOrderList struct {
	OrderId int `gorm:"type:int"`
	GoodCode string `gorm:"type:varchar(30)"`
	GoodName string `gorm:"type:varchar(30)"`
	GoodPrice int `gorm:"type:int"`
	GoodFrom string `gorm:"type:varchar(30)"`
	GoodTo string `gorm:"type:varchar(30)"`
}